﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CatAndDog5
{
    class Cat : Animal
    {
        public Cat() : base()
        { }

        public Cat(string name) : base(name)
        { }

        protected override string getVoice()
        {
            return "喵";
        }
    }

    class MacchineCat : Cat, IChange
    {
        //可以使用父类实现的getVoice

        public MacchineCat() : base()
        { }

        public MacchineCat(string name) : base(name)
        { }

        public string ChangeTest()
        {
            return base.Shout() + " 我能从口袋里变出东西!";
        }
    }
}
